package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 试用表
 * </p>
 *
 * @author hpiggy
 * @since 2025-06-10
 */
@Data
@TableName("adms_trial_form")
@ApiModel(value = "TrialForm对象", description = "试用表")
public class TrialForm implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    @ApiModelProperty("试岗id")
    private Long tryJobId;

    @ApiModelProperty("试用时间")
    private LocalDate trialDate;

    @ApiModelProperty("0未点评，1通过，2未通过")
    private Integer passType;

    @ApiModelProperty("0未离职 1已离职")
    private Integer isResign;

    @ApiModelProperty("离职审核id")
    private Long auditResignId;

    @ApiModelProperty("离职时间")
    private LocalDateTime isResignTime;


    @ApiModelProperty("试用是否通过时间")
    private LocalDateTime isPassTime;


    @ApiModelProperty("试用点评id")
    private Long commentId;

    @ApiModelProperty("是否自弃")
    private Integer isGiveUp;

    @ApiModelProperty("自弃时间")
    private LocalDateTime giveUpTime;

    @ApiModelProperty("自弃原因")
    private String giveUpContent;

    @ApiModelProperty("评语")
    private String comment;

    @ApiModelProperty("0未评语 1已评语")
    private Integer isComment;

    @ApiModelProperty("0未判定 1通过 2未通过")
    private Integer determineStatus;

    @ApiModelProperty("1：试用点评")
    private Integer type;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    @ApiModelProperty("简历id")
    private Long recruitId;

    @TableField(exist = false)
    @ApiModelProperty("试用总数")
    private Integer trialCount;

    @TableField(exist = false)
    @ApiModelProperty("试用自弃总数")
    private Integer trialGiveUpCount;

    @TableField(exist = false)
    @ApiModelProperty("试用通过总数")
    private Integer trialPassCount;

    @TableField(exist = false)
    @ApiModelProperty("试用淘汰总数")
    private Integer trialNotPassCount;

    @TableField(exist = false)
    @ApiModelProperty("在职人数")
    private Integer workCount;

    @TableField(exist = false)
    @ApiModelProperty("离职人数")
    private Integer notWorkCount;

    @TableField(exist = false)
    @ApiModelProperty("学校名")
    private String schoolName;

    @TableField(exist = false)
    @ApiModelProperty("学校名")
    private Long schoolCrossId;

    @TableField(exist = false)
    @ApiModelProperty("岗位")
    private String stationName;
//
    @TableField(exist = false)
    @ApiModelProperty("姓名")
    private String name;

}
